home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr28 / lanscrpt.zip / LANSCRPT.DOC < prev    next >
Text File  |  1993-03-24  |  3KB  |  45 lines

  1. Using Lantastic's macros and the dos enviroment to accomplish a standard
  2. interface to your network:
  3.  
  4. By Ken Thompson
  5. Lantastic user and fan.
  6.  
  7. I was asked to do this by a user on the ARTIFACTS BBS, so that Lantastic users 
  8. could be given a standard interface no matter what station that they logged in 
  9. from.  It tends to emulate the scripts found in that other network in the big 
  10. red box.  Having worked on a few of them, (yeech) I found the system script and
  11. the users script to be handy items.  I wondered if the same thing could be inte-
  12. grated into a Lantastic network.  The problem comes when you attempt to access 
  13. the user's name and the station name in the Lantastic programs.  They refused 
  14. to give up the user_name variable.  So when Lantastic 4.1 came out, and there 
  15. appeared the !"user" macro and the !"machine_id" macro, I was estatic.  Now, I 
  16. could use these macros and the net string command to set up enviroment variables
  17. to configure the network to my liking.  If you will study the batch files included 
  18. with this file, you too can accomplish this.  It really makes the network much
  19. easier to administer.
  20.  
  21. A few notes are in order:
  22.  
  23. I use Lantastic 4.1.  I don't remember if the same macros are in 4.00 or 3.XX.
  24.  
  25. I also use the 4dos command shell on all machines.  This is a test to see if 
  26. all the software that I use is compatible with 4dos (Lotus 123 v.3.1, Wordstar,
  27. Quattro Pro, and several menuing packages).  I love 4dos!  The configuration is 
  28. much more manageable that plain old DOS.  It has much better features than DOS. 
  29. And you can load all of it (execpt 256 bytes, yes bytes) into high memory.  
  30. Unfortunatly, some of the features used in the batch files are not available
  31. with plain DOS.  The system batch file has a section that has an .and. statement
  32. in it.  This part will not work with plain dos, but if you are goo enough, you 
  33. can subdivide the batch file further to test all conditions one by one.  This will
  34. accomplish the same thing, just not as fast.  (actually, this is how the batch 
  35. file started, but then I discovered the .and. portion of 4dos).
  36.  
  37. If you have problems getting the batch files to work, first try to put enough 
  38. pauses into the batch files so that you can break out of the batch file with a 
  39. ^C (CTRL-C) and check the enviroment variables.  If you still can't figure it out,
  40. try drawing a diagram of the batch file with labels of the enviroment variables
  41. in their appropriate places.  Lastly, if you still can't find the problem, u/l
  42. the offending code to the ARTIFACTS BBS, and leave me a note.  Just like Penn
  43. Jillette, I can't program, but Damnit, I can write a batch file!  I can usually 
  44. find the error and correct it.  
  45.